﻿using sMES_Base.service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sMES_Base;
using load_applied_acc_info_get.Models;
using load_applied_acc_info_get;

namespace load_applied_acc_info_get_C
{

    /// <summary>
    /// [模製具模組][設備模具上模清單]
    /// Creater : JingHuang
    /// Creat time : 20181123
    /// 0052689: [2.1.0][load_applied_acc_info_get]服務重構
    /// </summary>
    public class load_applied_acc_info_get_C : BaseService
    {
        public load_applied_acc_info_get_C(ServiceInfo _ServiceInfo) : base(_ServiceInfo)
        {
        }


        /// <summary>
        /// LoadAppliedAccessory
        /// CDO_TBLEQPEQUIPMENTTYPEACCCATEGORY
        /// </summary>
        /// <param name="ServiceRequest"></param>
        /// <param name="ServiceResponse"></param>
        /// <returns></returns>
        public override ServiceResponse ExecuteImplement(ServiceRequest ServiceRequest, ServiceResponse ServiceResponse)
        {
            //將dynamic 物件轉換成實體物件
            REQ_load_applied_acc_info_get _content = ServiceRequest.GetContent<REQ_load_applied_acc_info_get>();

            //取出Utilitiy
            load_applied_acc_info_get_utility _utility = GetUtilities<load_applied_acc_info_get_utility>();

            ServiceResponse.Content = new RES_load_applied_acc_info_get ();
            ServiceResponse.Content = _utility.load_applied_acc_info_detail(_content);
            return ServiceResponse;
        }

    }
}
